package com.hxut.service;

import com.hxut.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MR.S
 * @since 2022-06-21
 */
public interface SysUserService extends IService<SysUser> {

    SysUser getByUsername(String username);

    String getAuthorityInfo(Long userId);

    //当用户权限被更改时清除缓存
    void clearUserAuthorityInfo(String username);

    //当角色权限被改变时清除缓存
    void clearUserAuthorityInfoByRoleId(Long roleId);

    //当菜单管理权限发送改变时，清除缓存
    void clearUserAuthorityInfoByMenuId(Long menuId);



}
